<?php
/**
 * Author: Administrator
 * Date: 2022/7/15 1:27
 */

namespace DesignPatterns\Creation\AbstractFactory\Html;

use DesignPatterns\Creation\AbstractFactory\MediaInterface;

class Text implements MediaInterface
{
    protected $content;

    public function __construct($content)
    {
        $this->content = $content;
    }

    public function render()
    {
        return '<div>'.$this->content.'</div>';
    }

}